import './assets/main.scss'
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'

//导入pinia ,为了获取token
import {createPinia} from 'pinia'
//导入persist
import { createPersistedState } from 'pinia-persistedstate-plugin'
//导入中文包,为了解决分页英文问题
import locale from 'element-plus/dist/locale/zh-cn.js'
//导入路由器
import router from '@/router'
const app = createApp(App)
const pinia = createPinia();
const persist =createPersistedState()
pinia.use(persist)

app.use(router)
app.use(ElementPlus,{locale})
app.use(pinia)
app.mount('#app')
